<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 插件菜单
*/
defined('BY_JYA') or exit('error');
list($basicname)=$arguments;
// 是主应用时的菜单
$menus1=array(
	array(
	'title'=>'平台管理','fa'=>'icon-dianpu','url'=>'jy_onlineedu/index/','child'=>array(
		array('title'=>'商学院','child'=>array(
			array('url'=>'jy_onlineedu/index/','title'=>'商学院概况'),
			array('url'=>'jy_onlineedu/basic.module_home/cover/ac=index&type=3','title'=>'商学院入口'),
			array('url'=>'core/account.article_list/','title'=>'公告列表'),
			array('url'=>'core/account.article_fenlei/','title'=>'公告分类'),
		)),
		array('title'=>'参数设置','child'=>array(
			array('url'=>'jy_onlineedu/setting/basic','title'=>'基本参数设置'),
			array('url'=>'jy_onlineedu/xieyi/','title'=>'平台协议'),
		)),
	)),
	array('title'=>'课程管理','fa'=>'icon-gengduotupian','url'=>'jy_onlineedu/video/','child'=>array(
		array('title'=>'课程管理','child'=>array(
			array('url'=>'jy_onlineedu/video/','title'=>'课程列表'),
			array('url'=>'jy_onlineedu/video_group/','title'=>'课程分类'),
		)),
	)),
	array('title'=>'用户管理','fa'=>'icon-gengduotupian','url'=>'jy_onlineedu/user/list/','child'=>array(
		array('title'=>'用户管理','child'=>array(
			array('url'=>'jy_onlineedu/user/list','title'=>'普通用户列表'),
			array('url'=>'jy_onlineedu/user/vip','title'=>'会员列表'),
			array('url'=>'jy_onlineedu/user/black','title'=>'黑名单'),
			array('url'=>'jy_onlineedu/poster/','title'=>'用户海报'),
		)),
	)),
	array('title'=>'员工管理','icon'=>'fa-users','url'=>'jy_onlineedu/kfgroups/','child'=>array(
		array('title'=>'员工管理','child'=>array(
			array('url'=>'jy_onlineedu/kfgroups/','title'=>'员工分组'),
			array('url'=>'jy_onlineedu/kefus/','title'=>'员工列表'),
		)),
	)),
	array('title'=>'分销管理','fa'=>'icon-dixiaofei','url'=>'jy_commission/agent/','child'=>array(
		array('title'=>'分销管理','child'=>array(
			array('url'=>'jy_commission/agent/','title'=>'分销商管理'),
			array('url'=>'jy_commission/member/','title'=>'会员管理'),
			array('url'=>'jy_commission/apply/','title'=>'审核分销商'),
			array('url'=>'jy_commission/order/','title'=>'分销订单'),
			array('url'=>'jy_commission/commission/','title'=>'佣金管理'),
			array('url'=>'jy_commission/creditlog/','title'=>'转积分列表'),
			array('url'=>'jy_commission/balance/','title'=>'结算管理'),
		)),
		array('title'=>'分销设置','child'=>array(
			array('url'=>'jy_commission/level/','title'=>'分销商等级设置'),
			array('url'=>'jy_commission/setting/','title'=>'基本设置'),
			array('url'=>'jy_commission/page_setting/','title'=>'样式设置'),
			array('url'=>'jy_commission/diyfrom/','title'=>'申请页面设置'),
			array('url'=>'jy_commission/levediyfrom/','title'=>'等级申请页面'),
		)),
	)),
	array('title'=>'财务管理','fa'=>'icon-dixiaofei','url'=>'jy_onlineedu/red/list/','child'=>array(
		array('title'=>'红包管理','child'=>array(
			array('url'=>'jy_onlineedu/red/list','title'=>'待发送红包列表'),
			array('url'=>'jy_onlineedu/red/ok','title'=>'红包发送成功列表'),
			array('url'=>'jy_onlineedu/red/no','title'=>'红包发送失败列表'),
		)),
		array('title'=>'提现管理','child'=>array(
			array('url'=>'jy_onlineedu/cashrecord/list','title'=>'申请提现列表'),
			array('url'=>'jy_onlineedu/cashrecord/ok','title'=>'审核通过列表'),
			array('url'=>'jy_onlineedu/cashrecord/no','title'=>'审核不通过列表'),
		)),
	)),
	array('title'=>'会员订单','fa'=>'icon-licai','url'=>'jy_onlineedu/order/','child'=>array(
		array('title'=>'课程订单','child'=>array(
			array('url'=>'jy_onlineedu/order/','title'=>'课程订单'),
		)),
		array('title'=>'vip订单','child'=>array(
			array('url'=>'jy_onlineedu/viporder/list','title'=>'待支付'),
			array('url'=>'jy_onlineedu/viporder/ok','title'=>'已支付'),
			array('url'=>'jy_onlineedu/viporder/no','title'=>'已取消'),
		)),
	)),
);
if($this->plugin_exists('jy_buhuo')){
	$menus1[4]['child'][]=array('title'=>'云仓设置','child'=>array(
			array('url'=>'jy_buhuo/index/','title'=>'基本设置'),
			array('url'=>'jy_buhuo/agent/','title'=>'经销库存'),
			array('url'=>'jy_buhuo/order/','title'=>'补货订单'),
			array('url'=>'jy_buhuo/basic.module_home/cover/ac=index&type=3','title'=>'云仓中心入口'),
	));
}
if(empty($basicname)){
	$menus =$menus1?$menus1:$menus2;
	return $menus ;
}else{
	$basicmens = $this->plugin($basicname)->getmenus();
	if(!empty($basicmens)){
		foreach($basicmens as &$v){
			if($v['isplugin'] == 1){
				$v=$menus2[0];
			}
		}
	}
	return $basicmens;
}

